package com.example.lxy.service.impl;

import com.example.lxy.mapper.Rolemapper;
import com.example.lxy.pojo.role;
import com.example.lxy.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private Rolemapper rolemapper;

    @Override
    public List<role> list() {
        return rolemapper.list();
    }

    @Override
    public boolean del(int rid) {
        return rolemapper.del(rid);
    }

    @Override
    public role upid(int rid) {
        return rolemapper.upid(rid);
    }

    @Override
    public void update(role r) {
        rolemapper.update(r);
    }

    @Override
    public void add(role r) {
        rolemapper.add(r);
    }
}
